package com.csdj.hzx.Service.imple;

import com.csdj.hzx.Service.UserMesService;
import com.csdj.hzx.mapper.UserMesMapper;
import com.csdj.hzx.pojo.UserMesCriteria;
import com.github.pagehelper.PageHelper;
import com.lww.springcloudapi.pojo.TabHallSetmeal;
import com.lww.springcloudapi.pojo.TabHallUserbill;
import com.lww.springcloudapi.pojo.TabHallUsermessage;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;


@Service
public class UserMesServiceImple implements UserMesService {

    @Autowired
    UserMesMapper userMesMapper;

    @Override
    public TabHallUsermessage findByUseridA(String userid) {
        return userMesMapper.findByUserId(userid);
    }

    @Override
    public List<TabHallUserbill> findAllCouFeiI(UserMesCriteria cr) {
        return userMesMapper.findAllCouFei(cr);
    }

    @Override
    public TabHallSetmeal findabsetmeal(String userid) {
        return userMesMapper.findTcanTable(userid);
    }

    @Override
    public int selectCount(String pnumber) {
        return userMesMapper.selectUserBillCount(pnumber);
    }


}
